
<script type="text/javascript">
	$(function() {
	     $("span.left-category-tour-gallery").svgallery({'animationSpeed' : 500});
	});
</script>    
         <?$inList   =  $this->inboundTourList?>
         <?$outList =  $this->outboundTourList?>

<div> 
    	<div class="left-gr-title">
    		<div class="corner-left-col1"></div>
    	    <div class="content-col1"><?=p("Top Inbound Tours")?></div>
    		<div class="corner-right-col1"></div>
    	 	<div class="content-col2"><?=p("Top Outbound Tours")?></div>
  		</div> <!--left-main-title -->

        <!-- tour list content -->
        <div style="clear:both"></div>
        <div> <!-- top tours -->
          		<div style="float:left;width:315px"> <!-- fist column -->
                    <? for ($i = 0; $i < count($inList); $i = $i + 2):?>                                    
                    <?$tour = $inList[$i] ?>
                        <div style="border:1px solid #eee;clear:left">
                                <div style="float:left;width:110px;height: 110px;background:#d6edfc;border:1px solid white">
                                    <span class="left-category-tour-gallery" style="float:left;width:110px;height:100px">
	                		    		<img src="" class="active-image" />
                                     	<span style="display:none" class="image-list"> 
		                			    <?=$this->hvnSlideshow(array('userId' => $tour['poster_id'], 
	                			    						'contentType' => "tour",
	                			    						'contentId' => $tour['id'], 'size' => 'xsmall'
		                			    )) ?>
    	                			    </span>
                                    </span>
                                </div>
                                <div style="float:left;width:195px;padding-left:5px;">
                                    <b><?=$this->inboundArticleList[$tour['id']]['article_title'] ?> </b>
                                    <p style="text-align:justify">
                                       <?=str_first_words(strip_tags($this->inboundArticleList[$tour['id']]['article_body']),50)?>
                                    </p>
                                    <div style="min-height:5px;text-align:right">
                                       	<a class="viewmore" href="<?=$this->hvnUrl(array('action' => 'view', 'module' => 'tour'),'nocontroller')?>?id=<?= $tour['id']?>">>><?=t(150) ?></a>
                                    </div>
                                </div>
                        </div>
                     <?endfor?>
                 </div>  <!-- fist column -->
           		 <div style="float:left;width:315px"> 
                    <? for ($i = 1; $i < count($inList); $i = $i + 2):?>                                    
                    <?$tour = $inList[$i] ?>
                        <div style="border:1px solid #eee;clear:left">
                                <div style="float:left;width:110px;height: 110px;">
                                    <span class="left-category-tour-gallery" style="float:left;width:110px;height:100px;background:#d6edfc;border:1px solid white">
	                		    		<img src="" class="active-image" />
                                     	<span style="display:none" class="image-list"> 
		                			    <?=$this->hvnSlideshow(array('userId' => $tour['poster_id'], 
	                			    						'contentType' => "tour",
	                			    						'contentId' => $tour['id'], 'size' => 'xsmall'
		                			    )) ?>
    	                			    </span>
                                    </span>
                                </div>
                                <div style="float:left;width:195px;padding-left:5px;">
                                    <b><?=$this->inboundArticleList[$tour['id']]['article_title'] ?> </b>
                                    <p style="text-align:justify">
                                       <?=str_first_words(strip_tags($this->inboundArticleList[$tour['id']]['article_body']),50)?>
                                    </p>
                                    <div style="min-height:5px;text-align:right">
                                       	<a class="viewmore" href="<?=$this->hvnUrl(array('action' => 'view', 'module' => 'tour'),'nocontroller')?>?id=<?= $tour['id']?>">>><?=t(150) ?></a>
                                    </div>
                                </div>
                        </div>
                     <?endfor?>

                </div>
         </div>	  <!-- top tours -->  
</div>
        <div class="clear"></div>
        <div class="clear"></div>        <div class="clear"></div>		



